Skip to main content

boundingRect

Type

property

Summary

Specifies whether a group automatically changes size to fit when its controls are moved or resized.

Syntax

set the boundingRect of <group> to {<left>, <top>, <right>, <bottom> | empty }

Description

Use the boundingRect property to control how a group responds when you move one of the group's controls to the edge of the group.

If a group's boundingRect is empty and its lockLocation is false, when you drag an object toward the boundary of the group, the group automatically expands, resizing itself to fit. If the lockLocation is true, the object is clipped to the group's rectangle.

If a group's boundingRect is not empty and its lockLocation is false, when you drag an object toward the boundary of the group, the group does not automatically resize to fit its objects. Instead, the object is clipped at the boundingRect. (In group-editing mode, the entire control is shown, but when you exit group-editing mode, controls outside the boundingRect are clipped.)

If the group is a scrolling group, dragging an object in it automatically scrolls the group. When you drag beyond the scrollable area, the object is clipped.

Examples

set the boundingRect of group "Icons" to 100,100,500,500
set the boundingRect of the target to the rect of the target

command: group

glossary: object, property, integer, group-editing mode, group

keyword: control, rectangle

object: control

property: boundingRect, lockLocation, margins

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?